package com.example.treehole.bean;

public class Course {
    private String name;
    private String time;
    private String location;
    private String userid;
    private String id;

    private int dayOfWeek;

    private int classNumber;
    private int type;// 1课程 2空白 3表头

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getDayOfWeek() {
        return dayOfWeek;
    }

    public void setDayOfWeek(int dayOfWeek) {
        this.dayOfWeek = dayOfWeek;
    }

    public int getClassNumber() {
        return classNumber;
    }

    public void setClassNumber(int classNumber) {
        this.classNumber = classNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public static Course makeEmptyCourse(int dayOfWeek, int classNumber) {
        Course course = new Course();
        course.setDayOfWeek(dayOfWeek);
        course.setClassNumber(classNumber);
        course.setName("");
        course.setTime("");
        course.setLocation("");
        course.setUserid("");
        course.setId("");
        course.setType(2);
        return course;
    }

    public static Course makeWeekItem(String name) {
        Course course = new Course();
        course.setDayOfWeek(0);
        course.setClassNumber(0);
        course.setType(3);
        course.setName(name);
        course.setTime("");
        course.setLocation("");
        course.setUserid("");
        course.setId("");
        return course;
    }
}